Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ttl for the SQLiteStorage #119

Merged

Conversation

HassanRady
Copy link
Contributor

  • Replace bigger than sign with smaller in sync and async in _remove_expired_caches for sqlite.
  • Add two test cases for sync and async to test sqlite cache lifecycle.

@karpetrosyan karpetrosyan changed the title Issue #118 Fix ttl for SQLiteStorage Nov 29, 2023
@karpetrosyan karpetrosyan changed the title Fix ttl for SQLiteStorage Fix ttl for the SQLiteStorage Nov 29, 2023
…e' into Issue-118-fix-sqlite-expire-cahce

# Conflicts:
#	tests/_async/test_storages.py
#	tests/_sync/test_storages.py
@karpetrosyan
Copy link
Owner

You can write only the async code and then run ./scripts/lint to generate the sync one.

Can we also have a changelog?

@karpetrosyan karpetrosyan added the bug Something isn't working label Nov 29, 2023
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (34231cc) 100.00% compared to head (6d7c2de) 100.00%.

❗ Current head 6d7c2de differs from pull request most recent head 2691414. Consider uploading reports for the commit 2691414 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #119   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         1769      1775    +6     
=========================================
+ Hits          1769      1775    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

CHANGELOG.md Outdated Show resolved Hide resolved
@karpetrosyan
Copy link
Owner

I have a little bit simplified the tests, so we don't have a special test for sqlite storage.

Thanks for this pull request 🙏 I will schedule a release for tomorrow 🎉

@karpetrosyan karpetrosyan merged commit 4e04a7c into karpetrosyan:master Nov 29, 2023
5 checks passed
This was referenced Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants